package QuanLyNhanSu;

import java.awt.Color;
import java.awt.Font;
import java.awt.Rectangle;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

public class frmDangNhap extends JFrame{

	SetControl set = new SetControl();
	
	JButton jbt_DangNhap = new JButton("Đăng nhập"),
			jbt_Thoat = new JButton("Thoát");
	
	JTextField 	jtf_TenDN = new JTextField();
	JPasswordField	jtf_MatKhau = new JPasswordField();
	
	JLabel 	jlb_TieuDe = new JLabel("ĐĂNG NHẬP"),
			jlb_TenDN = new JLabel("Tên đăng nhập:"),
			jlb_MatKhau = new JLabel("Mật khẩu:");
	
	public void SetLayout(){
		jlb_TieuDe.setForeground(new Color(0, 128, 128));
		jlb_TieuDe.setFont(new Font("Tahoma", Font.BOLD, 20));
		jlb_TieuDe.setBounds(new Rectangle(110,10,200,25));
		
		set.setFont(jlb_TenDN);set.setFont(jlb_MatKhau);
		set.setFont(jtf_TenDN);set.setFont(jtf_MatKhau);
		set.setFont(jbt_DangNhap);set.setFont(jbt_Thoat);
		
		jlb_TenDN.setBounds(new Rectangle(10, 50, 120, 25)); 
		jlb_MatKhau.setBounds(new Rectangle(10, 80, 120, 25)); 
		
		jtf_TenDN.setBounds(new Rectangle(130, 50, 200, 25)); 
		jtf_MatKhau.setBounds(new Rectangle(130, 80, 200, 25)); 
		
		jbt_DangNhap.setBounds(new Rectangle(90, 110, 120, 30)); 
		jbt_Thoat.setBounds(new Rectangle(220, 110, 110, 30)); 
		
		add(jlb_TieuDe);
		add(jlb_TenDN);add(jlb_MatKhau);
		add(jtf_TenDN);add(jtf_MatKhau);
		add(jbt_DangNhap);add(jbt_Thoat);
	}
	public frmDangNhap(){
		setSize(360, 190);
		setVisible(true);
		setTitle("Đăng nhập");
		setLayout(null);
		SetLayout();
		setMaximizedBounds(new Rectangle(0,0,360,190));
		
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new frmDangNhap();
	}

}
